<?php require( DIR_TEMPLATE . $this->config->get('config_template') . "/template/common/config.tpl" ); 
$themeConfig = $this->config->get( 'themecontrol' );?>
<?php echo $header; ?>
<div class="breadcrumb-homepage">
	<a class="home" href="index.php"></a>
</div>
	<div class="span9">
		<div id="content"><?php echo $content_top; ?>
		<h1 style="display: none;"><?php echo $heading_title; ?></h1>
		<?php echo $content_bottom; ?>
		</div>
	</div>
	<?php if( $SPAN[2] ): ?>
	<div class="span3">	
		<?php echo $column_right; ?>
	</div>
	<?php endif; ?>
<?php if($themeConfig['popup_status']){ ?>
<div class="ads-popup">
<?php echo html_entity_decode( $themeConfig['ads_popup_html'][$this->config->get( 'config_language_id' )], ENT_QUOTES, 'UTF-8' ); ?>
</div>
<?php } ?>
<?php if($themeConfig['popup_status']){ ?>
<script type="text/javascript"><!--
	$(document).ready(function(){
		function tv_poup(){	
			$width_img_mar=0;
			$height_img_mar=0;
			$width_win=$(window).width();
			$height_win=$(window).height();
			$val_width=$(".poup").attr("val_width");
			$val_height=$(".poup").attr("val_height");
			if($val_width>$width_win){$width_img=$width_win;}
			else{$width_img_mar=(($width_win-$val_width)/2);$width_img=$val_width;}
			if($val_height>$height_win){$height_img=$height_win;}
			else{$height_img_mar=(($height_win-$val_height)/2);$height_img=$val_height;}
			$(".poup").attr("style","width:"+$width_img+"px;height:"+$height_img+"px;top:"+$height_img_mar+"px;left:"+$width_img_mar+"px;")
		};
		
		$(window).load(function(){tv_poup();});
		$(".pop_exit").click(function(){
			$(".poup").hide();
		});	
	});
//--></script>
<?php } ?>
<?php echo $footer; ?>